#include "ByteBufferPool.h"
#include "ByteBuffer.h"

using namespace cm_nat;

int main()
{
    ByteBufferPool bp;
    bp.init(50,50);

    ByteBuffer* bb;

    bb = bp.get();
    bb->increaseRef();
    bb->decreaseRef();

    for(int i =0; i<50;i++)
    {
        bb = bp.get();
    }

    bb = bp.get(0);

    return 0;
}